<?php
namespace app\admin\model;
use think\facade\Db;
use think\facade\Request;
use think\facade\View;
class Brand
{
    public static function getShangpinList($where,$whereOr)
    {
        $list = Db::table('ecm_brand')
            ->where(function ($query)use ($whereOr){
                $query->whereOr($whereOr);
            })
            ->where($where)
            ->order('sort_order')
            ->paginate([
                'list_rows'=>2,
                'query'=>input()
            ]);
        return $list;
    }
}